package com.lening.organization.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lening.common.base.BaseService;
import com.lening.organization.dto.DepartmentDTO;
import com.lening.organization.po.Department;

import java.util.List;

public interface DepartmentService extends BaseService<Department, DepartmentDTO> {
    Page<Department> findDepartment(Integer pageNum, Integer pageSize, Page<DepartmentDTO> departmentDTO);

    List<Department> findByParentId(Long parentId);
}
